import React from 'react';
import { createStackNavigator } from '@react-navigation/stack';
import PostScreen from './post.js';
import Chooseplate from './chooseplate.js';

const Stack = createStackNavigator();

export default function App() {
  return (
    <Stack.Navigator>
      <Stack.Screen
        name="PostScreen"
        component={PostScreen}
        options={{
          headerShown: true,
          headerTitle: '发帖',
          headerTitleAlign: 'center',
          headerStyle: {
            backgroundColor: '#EB7A76',
          },
          headerTintColor: '#fff',
        }}
      />
      <Stack.Screen
        name="Chooseplate"
        component={Chooseplate}
        options={{
          headerShown: true,
          headerTitle: '选择板块',
          headerTitleAlign: 'center',
          headerStyle: {
            backgroundColor: '#EB7A76',
          },
          headerTintColor: '#fff',
        }}
      />
    </Stack.Navigator>
  );
}